# python常见数据类型分类
print("hello world")
# 数字类型
numbers1 = 555
numbers2 = 1.114
numbers3 = True

print(numbers1, numbers2, numbers3)
print(type(numbers1)) # int :整数
print(type(numbers2)) # float :小数
print(type(numbers3)) # bool :布尔值（True/False）

# 定义数据
a1 = "abc"
a2 = [11, "李四", 1.114]
a3 = (11, "李四", 1.114)
a4 = {11, "张三", 1.11}
a5 = {"name": "张三", "age": 18}
print(a1)
print(a2)
print(a3)
print(a4)
print(a5)
print(type(a1))  # str : 字符串 ""
print(type(a2))  # list : 列表 []
print(type(a3))  # tuple : 元组 ()
print(type(a4))  # set : 集合 {}
print(type(a5))  # dict : 字典 { "name":"" , "age":   }
# 总结：查看某个变量/值的数据类型的函数用type,如果要打印结果，需要用print函数
